#!/bin/bash

total=0

# find /etc -size -4096c -type f 2>/dev/null | while read path
# do
#     read x x x x size x <<<$(ls -l "$path")
#     total=$((total+size))
#     echo "total: $total"
# done

# while read path
# do
#     read x x x x size x <<<$(ls -l "$path")
#     total=$((total+size))
# done < <(find /etc -size -4096c -type f 2>/dev/null)
# echo "total: $total"
# 
# 
# find /etc -size -4096c -type f 2>/dev/null | { while read path
# do
#     read x x x x size x <<<$(ls -l "$path")
#     total=$((total+size))
# done
# echo "total: $total"
# }


find /etc -size -4096c -type f 2>/dev/null -print0 | xargs -0 ls -l \
    | awk '{total+=$5}END{print "total:", total}'
